package com.itheima.reggie.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.reggie.dto.DishDto;
import com.itheima.reggie.dto.SetmealDto;
import com.itheima.reggie.entity.Setmeal;

import java.util.List;

public interface SetmealService extends IService<Setmeal> {
    void saveWithDish(SetmealDto setmealDto);


    /**
     * 根据分页sql语句实现分页
     *
     * @param page
     * @param pageSize
     * @param name
     * @return
     */
    Page<SetmealDto> pageBySQL(Integer page, Integer pageSize, String name);

    void removeWithDish(List<Long> ids);

}
